Skip to content

Cleanup SPI_Multiple_Buses #3527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Conversation

muman613
Copy link
Contributor

The existing example contains some issues which could cause confusion.

Looking at line #35 it is clear that the commented line should be calling the begin method of vspi and not hspi. By using preprocessor symbols it makes the code more readable, and being able to control whether the SPI bus standard pins are used or the alternate pins by setting a symbol makes it easier.

Also the setting of the SS pins to output now is easier, and also the raising and lowering of the SS lines during sending is a lot easier and clearer.

Please consider this PR for merging.

* Utilize prepoc symbols for SPI pins
* Adjusts for GPIO pins when ALTERNATE_PINS is set
@me-no-dev me-no-dev merged commit 579e04b into espressif:master Jan 20, 2020
@me-no-dev
Copy link
Member

merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants